/**
 * @file slave.h
 * @brief this is a brief description
 * @details this is the detail description.
 * @author fulong 
 * @data 7/4/2014
 * @version 1.0
 * @par Copyright (c):
 * @par First build
 *     version: fulong 
 *     data: 7/4/2014
 */
#ifndef __SLAVE_H__
#define __SLAVE_H__
#include "../../../hal_include/hal_types.h"

typedef enum {
    MODBUS_FREE,
    MODBUS_BUSY,
    MODBUS_CHECK_VERIFY,
    MODBUS_SELECT_DEVICE,
    MODBUS_SINGLE_PROCESS,
    MODBUS_BROADCAST_PROCESS,
    MODBUS_VERIFY_ERROR,
    MODBUS_PROCESS_SUCCESS,
    MODBUS_PROCESS_EXCEPTION,
    MODBUS_PROCESS_DONE
}slave_status_struct;

extern void slave_configure(void);
extern void slave_receive(void);
extern void slave_process(void);
extern void	slave_receive_frame_function(const 	uint8 data);

#endif /* __SLAVE_H__ */

 
